function Button() {
  const Test = () => {
    console.log("点击事件");
  };
  const Test2 = (name) => {
    console.log(name);
  };
  return (
    <>
      <button onClick={Test}> Click Me</button>
      <button onClick={()=>Test2("test")}> Click Me2</button>
    </>
  );
}
export default Button;
